import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 34255
 * Date: 2024-06-25
 * Time: 18:02
 */
public class Test {
    public static void main(String[] args) {
        int[] array = null;
        System.out.println(array[0]);
//        int[] array2 = Arrays.copyOfRange(array1,1,2);
//        System.out.println(Arrays.toString(array2));

        boolean[] array3 = new boolean[]{true,true,true};
        boolean[] array4 = Arrays.copyOfRange(array3,1,2);
        System.out.println(Arrays.toString(array4));


    }
    public static void main4(String[] args) {
        int[] array1 = new int[]{1,2,3,4,5};
        int[] array2 = Arrays.copyOf(array1,2 * array1.length);
        System.out.println(Arrays.toString(array2));

        boolean[] array3 = new boolean[]{true,true,true};
        boolean[] array4 = Arrays.copyOf(array3,2 * array3.length);
        System.out.println(Arrays.toString(array4));

        double[] array5 = new double[]{1,2,3,4,5};
        double[] array6 = Arrays.copyOf(array5,2 * array1.length);
        System.out.println(Arrays.toString(array6));
    }






    public static int[] func(int[] array){
        if(array != null)
            return array;
        else
            return null;
    }
    public static void main3(String[] args) {
        int[] array1 = new int[]{1,2,3,4,5};
        int[][] array2 = new int[][]{{1,2,3},{4,5,6},{7,8,9}};


    }
    public static void func2(int[][] array){

    }
    public static void main2(String[] args) {
        int[][] array = new int[][]{{1,2,3},{4,5,6},{7,8,9}};
        func2(array);
    }
    public static void func1(int[] array){
    }
    public static void main1(String[] args) {
        int[] array1 = new int[]{1,2,3,4,5};
        func1(array1);
    }
}
